package com.greysh.enter.service.impl;

import java.sql.SQLException;
 
import com.greysh.enter.dao.AdminDao;
import com.greysh.enter.model.Admin;

import com.greysh.enter.service.AdminService;

public class AdminServiceImpl implements AdminService {

	private AdminDao adminDao;
	
	 
	//按用户名查询密码
	public Admin findAdminByName(String name) throws SQLException{
		Admin admin = new Admin();
		admin = adminDao.selectAdminByName(name);
		return admin;
	}
	 
	
	

	public AdminDao getAdminDao() {
		return adminDao;
	}

	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}




	@Override
	public void deleteScore(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		
	}




 
	
	
}
